package service;

import model.User;

import java.sql.Connection;
import java.util.List;

public interface UserService {
    User login(String username, String password) throws Exception;

    User getLoginUser() throws Exception;

    List<User> getUserList() throws Exception;

    int addUser(User user);

    int updateUser(User user);

    int updateUserBalance(Connection con, User user, Integer flag, Double num) throws Exception;
    int updateUserBalance(User user, Integer flag, Double num);

    User getUserByEmail(String email);


}
